﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp2
{
    public enum Op { 剪刀=1,石头,布}
    class Opreation:Name
    {
        public int Num2 { get; set; }
        struct Msg2
        {
            public int num2;
        }
        public int Msg()
        {
            Msg2 msg2;
            msg2.num2 = int.Parse(Console.ReadLine());
            return msg2.num2;
        }
        public int Opper2()
        {
            int num2cha = Msg();
            return num2cha;
        }
        public void Opre()
        {
            switch (Opper2())
            {
                case (int)Op.剪刀:
                    Console.WriteLine($"{Name2()}: 出拳：{Op.剪刀}");
                    break;
                case (int)Op.石头:
                    Console.WriteLine($"{Name2()}: 出拳：{Op.石头}");
                    break;
                case (int)Op.布:
                    Console.WriteLine($"{Name2()}: 出拳：{Op.布}");
                    break;
                default:
                    Console.WriteLine("opre输入错误！");
                    break;
            }
        }
    }
}
